import java.util.HashMap;
import java.util.Map;

/**
 * @author LKQ
 * @date 2022/2/20 15:12
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public String restoreString(String s, int[] indices) {
        int n = indices.length;
        char[] ans = new char[n];
        for (int i = 0; i < n; i++) {
            ans[indices[i]] = s.charAt(i);
        }
        return new String(ans);
    }
}
